<template>
  <div>
    <Header ></Header>
    <router-view></router-view>
    <!-- login和register 不能渲染Footer -->
    <!-- <Footer v-if="$route.name!='Login'&& $route.name!='Register'"></Footer> -->
    <!-- <Footer v-if="IsShow" ></Footer> -->
    <Footer v-if="IsShow" ></Footer>

    
  </div>
</template>

<script>
import Footer from './components/Footer/Footer.vue'
import Header from './components/Header/Header'
export default {
name:"App",
components:{
  Header,
  Footer
},
computed:{
  // IsShow(){
  //   return this.$route.name!='Login'&& this.$route.name!='Register'
  // }
  IsShow(){
    return !this.$route.meta.Isshow
  }
}
}
</script>

<style>

</style>